package cn.yunhe.crm.dao;

import cn.yunhe.crm.entity.Business;
import cn.yunhe.crm.entity.BusinessExample;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

public interface BusinessMapper {
    int countByExample(BusinessExample example);

    int deleteByExample(BusinessExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Business record);

    int insertSelective(Business record);

    List<Business> selectByExample(BusinessExample example);

    Business selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Business record, @Param("example") BusinessExample example);

    int updateByExample(@Param("record") Business record, @Param("example") BusinessExample example);

    int updateByPrimaryKeySelective(Business record);

    int updateByPrimaryKey(Business record);

    //鏍规嵁鍟嗘満涓殑鏈烘瀯id鑾峰彇鍟嗘満鐩稿叧鎵�鏈変俊鎭�
	List<Business> findBusinessAndOrg();
	//鏍规嵁鍟嗘満id鑾峰彇鍟嗘満锛屾満鏋勶紝鍙婅仈绯讳汉绛変俊鎭�
	Business findByPrimaryKey(Integer id);

    
    int checkCountByYearAndMonth(Map map);
    
    int checkCountByStage(Integer stage);
    
    int checkCountByStageByYearAndMonth(Map map);
    
    List<Integer> checkOidByStage();
    
    List<Integer> checkOidByStageByYearAndMonth(Map map);
    int  checkCountByToday();
}
